extends "../hude-1/hude-1.gd"


func _extInit():
	._extInit()
	lv = 2             #等级的设置
	addSkill("每{cd}秒赋予全体友军4层<速攻>", "皇家荣耀", "fleetHonor", 10)

func _castCdSkill(id):
	._castCdSkill(id)
	if id=="fleetHonor":
		fleetHonor()

func fleetHonor():
	utils.createSkillTextEff("皇家荣耀", position)
	for i in getAllChas(2):
		if not i.isDeath:
			i.addBuff(buff.b_suGong.new(4))
			if upgraded == 1:
				castBuff(i, buff.b_zhenFen.new(3))